package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.AirportServiceItemMapper;
import com.ktgj.service.domain.AirportServiceItem;
import com.ktgj.service.service.IAirportServiceItemService;

/**
 * 机场服务明细			
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class AirportServiceItemServiceImpl implements IAirportServiceItemService 
{
    @Autowired
    private AirportServiceItemMapper airportServiceItemMapper;

    /**
     * 查询机场服务明细			

     * 
     * @param itemId 机场服务明细			
ID
     * @return 机场服务明细			

     */
    @Override
    public AirportServiceItem selectAirportServiceItemById(Long itemId)
    {
        return airportServiceItemMapper.selectAirportServiceItemById(itemId);
    }

    /**
     * 查询机场服务明细			
列表
     * 
     * @param airportServiceItem 机场服务明细			

     * @return 机场服务明细			

     */
    @Override
    public List<AirportServiceItem> selectAirportServiceItemList(AirportServiceItem airportServiceItem)
    {
        return airportServiceItemMapper.selectAirportServiceItemList(airportServiceItem);
    }

    /**
     * 新增机场服务明细			

     * 
     * @param airportServiceItem 机场服务明细			

     * @return 结果
     */
    @Override
    public int insertAirportServiceItem(AirportServiceItem airportServiceItem)
    {
        airportServiceItem.setCreateTime(DateUtils.getNowDate());
        return airportServiceItemMapper.insertAirportServiceItem(airportServiceItem);
    }

    /**
     * 修改机场服务明细			

     * 
     * @param airportServiceItem 机场服务明细			

     * @return 结果
     */
    @Override
    public int updateAirportServiceItem(AirportServiceItem airportServiceItem)
    {
        airportServiceItem.setUpdateTime(DateUtils.getNowDate());
        return airportServiceItemMapper.updateAirportServiceItem(airportServiceItem);
    }

    /**
     * 批量删除机场服务明细			

     * 
     * @param itemIds 需要删除的机场服务明细			
ID
     * @return 结果
     */
    @Override
    public int deleteAirportServiceItemByIds(Long[] itemIds)
    {
        return airportServiceItemMapper.deleteAirportServiceItemByIds(itemIds);
    }

    /**
     * 删除机场服务明细			
信息
     * 
     * @param itemId 机场服务明细			
ID
     * @return 结果
     */
    @Override
    public int deleteAirportServiceItemById(Long itemId)
    {
        return airportServiceItemMapper.deleteAirportServiceItemById(itemId);
    }
}
